/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.meibang.meibanguserandclient.entity;

import cn.apestar.common.persistence.DataEntity;
import cn.apestar.common.utils.excel.annotation.ExcelField;
import cn.apestar.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;


/**
 * 业务管理客Entity
 *
 * @author yudw
 * @version 2017-05-03
 */
public class MeibangUserAndClient extends DataEntity<MeibangUserAndClient> {

    private static final long serialVersionUID = 1L;
    private User master;    // 管理者ID
    private User user;    // 业务客ID
    private String reason;    // 事由
    private String remark;    // 备注

    @ExcelField(title = "归属者账户", type = 0, align = 1, sort = 1) private String masterAccount;

    @ExcelField(title = "业务客账户", type = 0, align = 1, sort = 2) private String userAccount;

    public String getMasterAccount() {
        return masterAccount;
    }

    public void setMasterAccount(String masterAccount) {
        this.masterAccount = masterAccount;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public MeibangUserAndClient() {
        super();
    }

    public MeibangUserAndClient(String id) {
        super(id);
    }

    public User getMaster() {
        return master;
    }

    public void setMaster(User master) {
        this.master = master;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Length(min = 0, max = 255, message = "事由长度必须介于 0 和 255 之间") public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Length(min = 0, max = 255, message = "备注长度必须介于 0 和 255 之间") public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}